﻿using System.Linq;
using FacialClub.Models.Entities;

namespace FacialClub.Models.Interfaces
{
    /// <summary>
    /// Notification Repository Interface
    /// </summary>
    public interface INotificationRepository
    {
        /// <summary>
        /// Get All Notification
        /// </summary>
        /// <returns></returns>
        IQueryable<Notification> FindAllNotification();

        /// <summary>
        /// Get Notification By Name
        /// </summary>
        /// <param name="strQuery"></param>
        /// <returns></returns>
        IQueryable<Notification> FindNotificationByName(string strQuery);

        /// <summary>
        /// Get Notification By Id
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Notification GetNotificationById(int id);

        /// <summary>
        /// Add Notification in the Database
        /// </summary>
        /// <param name="notification"></param>
        void Add(Notification notification);

        /// <summary>
        /// Delete Notification from the Database
        /// </summary>
        /// <param name="notification"></param>
        void Delete(Notification notification);

        /// <summary>
        /// Save record in the database
        /// </summary>
        void Save();
    }
}